package main

import (
	"fmt"
	"math/rand"
	"reflect"
	"time"
)

type Tes[Type any] struct {
	Name Type
}

func (t *Tes[T]) Named(a T) {
	t.Name = a
}

type Aer interface {
	int | float64
}

func Add[T Aer](a T, b T) T {
	fmt.Println(reflect.TypeOf(a))
	fmt.Println(reflect.ValueOf(a))
	return a + b
}
func main() {
	//urll := "http%3a%2f%2fad.partner.gifshow.com%2ftrack%2factivate%3fcallback%3dDUKFQQ3NGFyk1uCKBYCyXp-ApCU-r7FG_a3TeY40C4wxmWqv46Pmr1q0wfwU3IPB"
	//fmt.Println(url.QueryUnescape(urll))
	//
	//params := url.Values{}
	//params.Set("event_type", "143")
	//params.Set("event_time", "sdfsdf")
	//fmt.Println(params.Encode())

	rand.Seed(time.Now().Unix())

	fmt.Println(rand.Intn(2 - 0))
	fmt.Println(rand.Intn(2 - 0))
	fmt.Println(rand.Intn(2 - 0))
	fmt.Println(rand.Intn(2 - 0))
	fmt.Println(rand.Intn(2 - 0))
	fmt.Println(rand.Intn(2 - 0))
	fmt.Println(rand.Intn(2 - 0))
	fmt.Println(rand.Intn(2 - 0))
	fmt.Println(rand.Intn(2 - 0))

	fmt.Printf("%v", 1650613126254+int64(time.Duration(3)*time.Hour/time.Millisecond))

}
